﻿using System;
using System.Configuration;

namespace Ue.CQRS.Configuration
{
    public class EventStore : System.Configuration.ConfigurationElement
    {
        [ConfigurationProperty(Constants.EventStore.Enabled, DefaultValue = true)]
        public bool Enabled
        {
            get { return (bool)base[Constants.EventStore.Enabled]; }
            set { base[Constants.EventStore.Enabled] = value; }
        }

        [ConfigurationProperty(Constants.EventStore.Repository, DefaultValue = "Ue.CQRS.Repositories.EventStoreRepository,Ue.CQRS")]
        public string Repository
        {
            get { return base[Constants.EventStore.Repository] as string; }
            set { base[Constants.EventStore.Repository] = value; }
        }
    }
}
